<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">

    <input name="id" type="hidden" value="${(orderDetails.id)!}"/>

    <#-- 订单ID（后台设置到作用域中） -->
    <#--name="cusId"与model中cusId对应    -->
    <input name="orderId" type="hidden" value="${oId!}"/>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="goodsName"
                   id="goodsName" value="${(orderDetails.goodsName)!}" placeholder="请输入商品名称">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">商品数量</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="goodsNum"
                   id="goodsNum" value="${(orderDetails.goodsNum)!}" placeholder="请输入商品数量(请输入数字)">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">单位</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="unit"
                   id="unit" value="${(orderDetails.unit)!}" placeholder="请输入商品单位(例：台、个等)">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">单价</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="price"
                   id="price" value="${(orderDetails.price)!}" placeholder="请输入单价/￥">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs6">
        <label class="layui-form-label">总金额/￥</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="sum" id="sum" value="${(orderDetails.sum)!}"placeholder="总金额/￥" readonly="readonly">
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit="" lay-filter="addOrUpdateOrderDetails">确认</button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="${ctx}/js/customer/order.details.add.update.js"></script>
</body>
</html>